<?php
class App_View_Helper_ConvertUrl{

	public function convertUrl($params = array()){

		$basePath = Zend_Registry::get('baseUrl');
		$path = $basePath . $params['module'] . "/". $params['controller'] . "/". $params['action'];

		unset($params['module']);
		unset($params['controller']);
		unset($params['action']);

		if(count($params) > 0){
			foreach($params as $key => $value){
				$path .= "/". $key ."/". $value;
			}
		}

		return $path;
	}

}